package com.lijian.dubbo.consumer.action;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lijian.dubbo.service.HelloService;

@Component
public class ExecuteUserAction {
	// 限定重试次数为0，避免测试的时候一个请求重复调用三次，超时设置时间较长，避免超时
	@Reference(retries=0,timeout=20000)
	HelloService helloService;
	
	public String say(String a){
		return helloService.hello(a);
	}
}
